package cn.lcsjsxy.yxz.keywords.import_package;

public class BoyGirl {

    //5.14
    //
    public static void main(String[] args) {

        Boy boy = new Boy("zz", 21);
        boy.shout();

        Girl girl = new Girl("xx", 18);
        girl.marry(boy);

        Girl girl1 = new Girl("cc", 19);
        int compare = girl.compare(girl1);
        if (compare > 0) {
            System.out.println(girl.getName() + "大");
        } else if (compare < 0) {
            System.out.println(girl1.getName() + "大");
        } else {
            System.out.println("一样大");
        }

    }
}
